package java7;

/**
 * switch中使用string
 *
 * @author user
 */
public class J4 {
    public static void main(String[] args) {
        String str = "abc";
        switch (str) {
            case "abc":
                System.out.println("是abc");
                break;
            default:
                break;
        }
    }
}
